LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE :=  cocos2dlua_shared 


LOCAL_MODULE_FILENAME := libcocos2dlua  


LOCAL_SRC_FILES := \
../../Classes/Bridge/LuaConnector.cpp \
../../Classes/Bridge/LuaPacket.cpp \
../../Classes/Bridge/LuaSystem.cpp \
../../Classes/common/DvSystem.cpp \
../../Classes/common/iconvString.cpp \
../../Classes/common/lock/AutoLock.cpp \
../../Classes/common/lock/CritSection.cpp \
../../Classes/common/math/md5.cpp \
../../Classes/common/net/AsyncSockLite.cpp \
../../Classes/common/net/ClientPacket.cpp \
../../Classes/common/net/ClientSocket.cpp \
../../Classes/common/net/SockLite.cpp \
../../Classes/common/os/api.cpp \
../../Classes/common/os/os_mutex.cpp \
../../Classes/common/os/os_sem.cpp \
../../Classes/common/os/os_socket.cpp \
../../Classes/common/os/os_thread.cpp \
../../Classes/common/serialize/SerialBuffer.cpp \
../../Classes/protobuf-lite/google/protobuf/io/coded_stream.cc \
../../Classes/protobuf-lite/google/protobuf/stubs/common.cc \
../../Classes/protobuf-lite/google/protobuf/extension_set.cc \
../../Classes/protobuf-lite/google/protobuf/generated_message_util.cc \
../../Classes/protobuf-lite/google/protobuf/message_lite.cc \
../../Classes/protobuf-lite/google/protobuf/stubs/once.cc \
../../Classes/protobuf-lite/google/protobuf/stubs/atomicops_internals_x86_gcc.cc \
../../Classes/protobuf-lite/google/protobuf/repeated_field.cc \
../../Classes/protobuf-lite/google/protobuf/wire_format_lite.cc \
../../Classes/protobuf-lite/google/protobuf/io/zero_copy_stream.cc \
../../Classes/protobuf-lite/google/protobuf/io/zero_copy_stream_impl_lite.cc \
../../Classes/protobuf-lite/google/protobuf/stubs/stringprintf.cc \
../../Classes/runtime/Landscape_png.cpp \
../../Classes/runtime/PlayDisable_png.cpp \
../../Classes/runtime/PlayEnable_png.cpp \
../../Classes/runtime/Portrait_png.cpp \
../../Classes/runtime/Shine_png.cpp \
../../Classes/runtime/Runtime.cpp \
../../Classes/runtime/Protos.pb.cc \
../../Classes/VisibleRect.cpp \
../../Classes/AppDelegate.cpp \
../../Classes/ConfigParser.cpp \
lua/Runtime_android.cpp \
lua/main.cpp


LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../../Classes/protobuf-lite \
$(LOCAL_PATH)/../../Classes/runtime \
$(LOCAL_PATH)/../../Classes/Bridge \
$(LOCAL_PATH)/../../Classes/common \
$(LOCAL_PATH)/../../Classes/common/include \
$(LOCAL_PATH)/../../Classes/common/lock \
$(LOCAL_PATH)/../../Classes/common/math \
$(LOCAL_PATH)/../../Classes/common/net \
$(LOCAL_PATH)/../../Classes/common/os \
$(LOCAL_PATH)/../../Classes/common/serialize \
$(LOCAL_PATH)/../../Classes/extensions \
$(LOCAL_PATH)/../../Classes \
$(LOCAL_PATH)/../../cocos2d-x/iconv/include \
$(LOCAL_PATH)/../../cocos2d-x/iconv/libcharset \
$(LOCAL_PATH)/../../cocos2d-x/iconv/lib \
$(LOCAL_PATH)/../../cocos2d-x/iconv/libcharset/include \
$(LOCAL_PATH)/../../cocos2d-x/iconv/srclib \
$(LOCAL_PATH)/../../cocos2d-x/iconv \
$(LOCAL_PATH)/../../../cocos2d-x/cocos/network  \
$(LOCAL_PATH)/../../../cocos2d-x/cocos/ui  \
$(LOCAL_PATH)/../../../cocos2d-x/extensions \



LOCAL_STATIC_LIBRARIES := curl_static_prebuilt

LOCAL_WHOLE_STATIC_LIBRARIES +=  cocos_lua_static cocos_extension_static  
LOCAL_WHOLE_STATIC_LIBRARIES += iconv_static
LOCAL_WHOLE_STATIC_LIBRARIES += android_support

include $(BUILD_SHARED_LIBRARY)



$(call import-module,extensions)
$(call import-module,scripting/lua-bindings)
$(call import-module,iconv)
$(call import-module,android/support)

